import axios from '@/libs/api.request'


/**
 * 获取停车场列表
 * @param userId
 * @returns {*|AxiosPromise<any>}
 */
export const getParkingLots = (userId) => {
  return axios.request({
    url: 'parkingLots/' + userId + '/all',
    method: 'get'
  })
}

/**
 * 新增停车场
 * @param data
 * @returns {*|AxiosPromise<any>}
 */
export const addParkingLot = (data) => {
  return axios.request({
    url: 'parkingLots/add',
    data,
    method: 'post'
  })
}


